package com.javaweb.service;
import com.javaweb.Dao.UserDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
@Service
@Slf4j
public class UserService {
    @Autowired
    @Qualifier("userDao")
    private UserDao userDao;
    public int getUserCount(){
        int count = 1;
        count=userDao.selectCount();

        log.info("成功实现UserService中的getUserCount()方法") ;
        return count;
    }

}
